<template>
	<view>
		<view class="select" style="padding: 20rpx;">
			<u-subsection :list="list" :current="curNow" @change="sectionChange" active-color="#ff9900"></u-subsection>
			<view class="content">
				<u-empty text="内容没空" mode="list"></u-empty>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{name: '未付款'},
					{name: '未付款'}
				],
				curNow: 0
			};
		},
		onLoad() {
			this.getData()
		},
		methods: {
			sectionChange(index){
				this.curNow = index
			},
			getData(){
				uni.request({
					url:this.$baseurl + '/prod-api/api/allorder/list',
					header: {Authorization: uni.getStorageSync('token')},
					success: (res) => {
						console.log(res.data)
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>
